Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use batching for billing UCAN stream handler #410

Merged
merged 5 commits into from
Jul 19, 2024

Conversation

alanshaw
Copy link
Member

@alanshaw alanshaw commented Jul 19, 2024

This enables the UCAN stream handler to accept messages in batches, which should hopefully speed up processing of the stream and stop the backlog from growing.

It's ok for the whole batch to be retried on failure since the primary key does not change over time, so any records that succeeded to be written in a failed batch will just be overwritten on retry.

@alanshaw alanshaw merged commit 1ad54ea into main Jul 19, 2024
1 check passed
@alanshaw alanshaw deleted the feat/use-batch-for-billing-ucan-stream-handler branch July 19, 2024 10:36
@seed-deploy seed-deploy bot temporarily deployed to pr410 July 19, 2024 10:44 Inactive
Copy link

seed-deploy bot commented Jul 19, 2024

View stack outputs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant